<?php
namespace Home\Controller;

class CommonController extends \Common\Controller\BaseController {
	function _initialize() {
		parent::_initialize();
		$Pages=M('Pages');
		$pagelist=$Pages->limit(4)->select();
		$this->assign('pagelist',$pagelist);

		$Articlecat=M('Article_cat');
		$articlelist=$Articlecat->select();
		$this->assign('articlelist',$articlelist);

		$Article=M('Article');
		$toplist=$Article->where('acid=15')->limit(3)->order('aid desc')->select();
		$this->assign('toplist',$toplist);
	}
}